package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 区域-设备表 实体类
 * 表名：risk_area_device
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_area_device")
public class RiskAreaDevice implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 区域ID
     */
    @Column(name = "area_id", nullable = false)
    private Long areaId;
    
    /**
     * 设备ID
     */
    @Column(name = "device_id", nullable = false)
    private Long deviceId;
    
    @Override
    public String toString() {
        return "RiskAreaDevice{" +
            "id=" + id +
            ", areaId=" + areaId +
            ", deviceId=" + deviceId +
        '}';
    }
} 